package study.singletonmode;

/**
 * 饿汉模式，线程安全
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }
    public static HungrySingleton getInstance() {
        return instance;
    }
}
